package com.sens.alipay.utils;

public class TradeInfoHelper {
    private Class TradeInfoClass;
    private Object tradeInfo;

    public TradeInfoHelper(Class TradeInfoClass) throws InstantiationException, IllegalAccessException {
        this.TradeInfoClass = TradeInfoClass;
        this.tradeInfo = TradeInfoClass.newInstance();
    }

    public TradeInfoHelper(Object tradeInfo) {
        this.tradeInfo = tradeInfo;
    }

    public Object getTradeInfo() {
        return tradeInfo;
    }

    public String getBusinessId() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("businessId").get(tradeInfo);
    }

    public void setBusinessId(String businessId) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("businessId").set(tradeInfo, businessId);
    }

    public String getContent() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("content").get(tradeInfo);
    }

    public void setContent(String content) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("content").set(tradeInfo, content);
    }

    public String getExpireLink() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("expireLink").get(tradeInfo);
    }

    public void setExpireLink(String expireLink) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("expireLink").set(tradeInfo, expireLink);
    }

    public String getExtraInfo() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("extraInfo").get(tradeInfo);
    }

    public void setExtraInfo(String extraInfo) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("extraInfo").set(tradeInfo, extraInfo);
    }

    public long getGmtCreate() throws NoSuchFieldException, IllegalAccessException {
        return (long) TradeInfoClass.getField("gmtCreate").get(tradeInfo);
    }

    public void setGmtCreate(long gmtCreate) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("gmtCreate").set(tradeInfo, gmtCreate);
    }

    public long getGmtValid() throws NoSuchFieldException, IllegalAccessException {
        return (long) TradeInfoClass.getField("gmtValid").get(tradeInfo);
    }

    public void setGmtValid(long gmtValid) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("gmtValid").set(tradeInfo, gmtValid);
    }

    public String getHiddenSum() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("hiddenSum").get(tradeInfo);
    }

    public void setHiddenSum(String hiddenSum) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("hiddenSum").set(tradeInfo, hiddenSum);
    }

    public String getHomePageTitle() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("homePageTitle").get(tradeInfo);
    }

    public void setHomePageTitle(String homePageTitle) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("homePageTitle").set(tradeInfo, homePageTitle);
    }

    public String getIcon() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("icon").get(tradeInfo);
    }

    public void setIcon(String icon) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("icon").set(tradeInfo, icon);
    }

    public String getId() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("id").get(tradeInfo);
    }

    public void setId(String id) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("id").set(tradeInfo, id);
    }

    public String getLink() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("link").get(tradeInfo);
    }

    public void setLink(String link) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("link").set(tradeInfo, link);
    }

    public String getLinkName() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("linkName").get(tradeInfo);
    }

    public void setLinkName(String linkName) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("linkName").set(tradeInfo, linkName);
    }

    public String getMenus() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("menus").get(tradeInfo);
    }

    public void setMenus(String menus) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("menus").set(tradeInfo, menus);
    }

    public String getMsgId() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("msgId").get(tradeInfo);
    }

    public void setMsgId(String msgId) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("msgId").set(tradeInfo, msgId);
    }

    public String getMsgState() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("msgState").get(tradeInfo);
    }

    public void setMsgState(String msgState) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("msgState").set(tradeInfo, msgState);
    }

    public String getMsgType() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("msgType").get(tradeInfo);
    }

    public void setMsgType(String msgType) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("msgType").set(tradeInfo, msgType);
    }

    public String getOperate() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("operate").get(tradeInfo);
    }

    public void setOperate(String operate) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("operate").set(tradeInfo, operate);
    }

    public String getStatus() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("status").get(tradeInfo);
    }

    public void setStatus(String status) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("status").set(tradeInfo, status);
    }

    public String getStatusFlag() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("statusFlag").get(tradeInfo);
    }

    public void setStatusFlag(String statusFlag) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("statusFlag").set(tradeInfo, statusFlag);
    }

    public String getTemplateCode() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("templateCode").get(tradeInfo);
    }

    public void setTemplateCode(String templateCode) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("templateCode").set(tradeInfo, templateCode);
    }

    public String getTemplateId() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("templateId").get(tradeInfo);
    }

    public void setTemplateId(String templateId) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("templateId").set(tradeInfo, templateId);
    }

    public String getTemplateName() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("templateName").get(tradeInfo);
    }

    public void setTemplateName(String templateName) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("templateName").set(tradeInfo, templateName);
    }

    public String getTemplateType() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("templateType").get(tradeInfo);
    }

    public void setTemplateType(String templateType) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("templateType").set(tradeInfo, templateType);
    }

    public String getTitle() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("title").get(tradeInfo);
    }

    public void setTitle(String title) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("title").set(tradeInfo, title);
    }

    public String getUserId() throws NoSuchFieldException, IllegalAccessException {
        return (String) TradeInfoClass.getField("userId").get(tradeInfo);
    }

    public void setUserId(String userId) throws NoSuchFieldException, IllegalAccessException {
        TradeInfoClass.getField("userId").set(tradeInfo, userId);
    }
}
